package com.imoney.framework.web;

import org.springframework.web.context.ContextLoader;
import org.springframework.web.context.WebApplicationContext;

/**
 * 
 * Description: <BR>
 * This is a bean loader for get all beans.
 * 
 * @author Robin CreateTime: Apr 7, 2010
 */
public class WebBeanLoader {
	public static Object getBean(String beanName) {
		WebApplicationContext applicationContext=ContextLoader.getCurrentWebApplicationContext();
		Object obj = applicationContext.getBean(beanName);
		return obj;
	}
}
